<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
{literal}
<script type="text/javascript">
		$(document).ready(function() {
				$("#various1").fancybox({
					'transitionIn'		: 'none',
					'transitionOut'		: 'none'
				});

				$("#prefillmessage").click(function(){
					if( $("#prefillmessage").val() == "Include a personal message (optional)" ){
						 $("#prefillmessage").val("");
					}
				});
				
				$("#sentmessage").bind("submit", function() {
					$.fancybox.showActivity();		
					$.ajax({
						type	: "POST",
						cache	: false,
						url		: "sentsuccess.php",
						dataType: 'json',
						data	: $(this).serializeArray(),
						success: function(data) {
							$.fancybox(data.text);
							if(data.status = 1)
							{
								$("#butWrap001").html('<span style=\'font-weight:bold;color:#FF8C00\'>Invitation Sent</span>');
							}
						}
					});
					return false;
				});
		});
</script>
{/literal}

<section class="main">
	<div class="layout_fp">
		<div class="bg_lineDown png_bg">
			<div class="container">
				<div class="main_wrap" id="profile">
					<div class="col_01">
						<div class="p_box">
							<div class="p_block">
							{if $uid>0}
								{if $isSentRequest ==1}
								<div class="btn-wrap"><span style='font-weight:bold;color:#FF8C00'>Invitation Sent</span></div>
								{elseif $showconnect == 1}
								<div class="btn-wrap" id="butWrap001"><a id="various1" href="#sentmessage" ><img src="images/btn-connect.png"></a></div>
								{elseif $connected == 1}
								<div class="btn-wrap"><span style='font-weight:bold;color:#FF8C00'>Connected</span></div>
								{elseif $myprofile == 1}
								<div class="btn-wrap"><span style='font-weight:bold;color:#FF8C00'>My Profile</span></div>
								{else}
								<div class="btn-wrap"><span style='font-weight:bold;color:#FF8C00'>Not Open to Invites</span></div>
								{/if}
							{/if}
								
								<div class="avatar_box">
									<a href="#" class="avatar"><img src="./uploadfiles/recruiter/{$list.rc_uploadfile}" width="100" height="100" /></a>
								</div>
								
								<dl class="p_r_info">
									<dt>{$list.rc_copname} </dt>
									<dd>Industry: <strong>{if $list.rc_industry != "0"}{$list.rc_industry}{else}Not Available{/if}</strong> </dd>
									<dd>General Service Area: <strong>{if $list.rc_generalarea != '0'}{$list.rc_generalarea}{else}Not Available{/if}</strong> </dd>
									<dd>Primary Service Area: <strong>{$list.rc_primaryarea}</strong> </dd>
									<dd>Function Specialty: <strong>{$list.rc_recruit}</strong> </dd>
									{if $list.ifshow_recruitex == 1}<dd>Years of Experience: <strong>{$list.rc_recruitex}</strong> </dd>{/if}
									{if $list.ifshow_spokenlanguage == 1}<dd>Spoken Language: <strong>{$list.rc_spokenlanguage}</strong> </dd>{/if}
								</dl>
							</div>
							<div class="common-block">	
								<div class="normal-title"><div class="tit-inner-l"> <h4>Contact Information</h4></div> <div class="tit-inner-r"></div></div>
								<table width="100%" cellspacing="3" cellpadding="0" border="0" class="profile_tb">
									<tbody>
										<tr>
											<th width="100"> Name: </th>
											<td>{$list.rc_fname} {$list.rc_lname}</td>
											<th>Phone: </td>
											<td>{if $list.ifshow_phone == 1}{$list.rc_phone}{else}Not Shared{/if}</td>
										</tr>
										<tr>
											<th width="100">Title:</th>
											<td>{if $list.ifshow_jobtitle == 1}{$list.rc_title}{else}Not Shared{/if}</td>
											<th>Fax:</td>
											<td>{if $list.ifshow_fax == 1}{$list.rc_fax}{else}Not Shared{/if}</td>
										</tr>
										<tr>
											<th>Address:</th>
											<td >{if $list.ifshow_address == 1}{$list.rc_address1}<br />{else}Not Shared{/if}
											{$list.rc_city} {$list.rc_state}, {$list.rc_country}<br />
											{$list.rc_zip}</td>
											<th>Email:</td>
											<td>{if $list.ifshow_email == 1}<a href="mailto:{$list.rc_email}">{$list.rc_email}</a>{else}Not Shared{/if}</td>
										</tr>
										<tr>
											<th>Website:</th>
											<td>{if $list.ifshow_companyurl == 1}<a href="{$list.rc_website}">{$list.rc_website}</a>{else}Not Shared{/if}</td>
											<th>Skype:</td>
											<td>{if $list.ifshow_skype == 1}<a href="skype:{$list.rc_skype}?chat"><img src="http://mystatus.skype.com/balloon/{$list.rc_skype}" style="border: none"  alt="My status" /></a>{else}Not Shared{/if}</td>
										</tr>
									</tbody>
								</table>
							</div>
							<div class="common-block">	
								<div class="normal-title"><div class="tit-inner-l"> <h4>More About Me</h4></div> <div class="tit-inner-r"></div></div>
								<div class="pinfo-u"><p>{$list.rc_description|nl2br}</p></div>
							</div>
							<div class="common-block">	
								<div class="normal-title"><div class="tit-inner-l"> <h4>Contact Perference</h4></div> <div class="tit-inner-r"></div></div>
								<div class="pinfo-u">
									<ul class="ml_15">
									{if $list.rc_share == 1}<li>Job-Split/Partnerships</li>{/if}
									{if $list.rc_business == 1}<li>Regular Employee</li>{/if}
									{if $list.rc_contract == 1}<li>Contract</li>{/if}
									{if $list.rc_consulting == 1}<li>Consulting</li>{/if}
									</ul>
								</div>
								</div>
							<div class="common-block">	
								<div class="normal-title"><div class="tit-inner-l"> <h4>My Experience and Specialty</h4></div> <div class="tit-inner-r"></div></div>
								<div class="pinfo-u"><p>{if $myspecialty != ''}
										<div style="color:#6699FF;font-weight:bold">Recruiting</div>
										<ul class="ml_15">
											{$myspecialty}
										</ul>
										{/if}
										{if $hr != ''}
										<div style="color:#6699FF;font-weight:bold">HR</div>
										<ul class="ml_15">
											{$hr}
										</ul>
										{/if}
										{if $industry != ''}
										<div style="color:#6699FF;font-weight:bold">Industry</div>
										<ul class="ml_15">
											{$industry}
										</ul>
										{/if}</p>
								</div>
							</div>
						</div>
					</div>



<div style="display: none;">
	<form id="sentmessage" method="POST" action="">
	<div>
		<h2 class="title">Invite <span class="yellow">{$list.rc_fname} {$list.rc_lname}</span> to connect with you on enetRecruiter</h2>
		<div class="info">Connecting with someone on enetRecruiter allows you to easily send them messages and collaborate on job requisitions. Once an invitation is accepted, the individual's contact details will be added to your contact list. Likewise, your contact information will be added to their contact list.</div>
		<div class="field-item"><textarea name="message" style="width:360px;height:100px" id="prefillmessage">Include a personal message (optional)</textarea></div>
		<div class="btn-wrap"><input type="submit" value="Send Invite" class="button-secondary"/> <input class="button-secondary" type="button" name="" value="Close" onclick="$.fancybox.close();"/>
		<input type="hidden" name="rid" value="{$list.rc_id}" />
		</div>
	</div>
	</form>
</div>